<?php echo $this->translate('ot-theme-index:header'); ?>
<br /><br />
<h3><?php echo $this->translate('ot-theme-index:currentTheme'); ?></h3>
<center>
    <div class="activeTheme">
        <?php echo $this->themes[$this->currentTheme]['name']; ?>
        <?php if (file_exists($this->themes[$this->currentTheme]["path"] . '/public/images/theme.png')) : ?>
        	<?php echo '<img src="' . $this->baseUrl() . '/' . $this->themes[$this->currentTheme]['url'] . '/public/images/theme.png' . '" width="200" height="200" />'; ?>
        <?php else : ?>
        	<div style="height:200px;width:200px;"><br /><br /><br /><br />[<?php echo $this->translate('ot-theme-index:noPreviewAvailable'); ?>]</div>
        <?php endif; ?>
        <?php echo $this->themes[$this->currentTheme]['description']; ?>
    </div>
</center>
<hr />
<h3><?php echo $this->translate('ot-theme-index:additionalThemes'); ?></h3>
<?php foreach ($this->themes as $id => $theme) : ?>
    <?php if ($id != $this->currentTheme) : ?>
	    <a href="<?php echo $this->url(array('controller' => 'theme', 'action' => 'select', 'theme' => $id), 'ot', true); ?>" class="themePreview">
            <?php echo $theme['name']; ?>
            <?php if (file_exists($theme['path'] . '/public/images/theme.png')) : ?>
            	<?php echo '<img src="' . $this->baseUrl() . '/' . $theme['url'] . '/public/images/theme.png' . '" width="200" height="200" />'; ?>
            <?php else : ?>
            	<div style="height:200px; width:200px;"><br /><br /><br /><br />[<?php echo $this->translate('ot-theme-index:noPreviewAvailable'); ?>]</div>
            <?php endif; ?>
            <?php echo $theme['description']; ?>
        </a>
    <?php endif; ?>
<?php endforeach; ?>
<div class="ui-helper-clearfix"></div>